Call ODC STOP only when the partition is in RUNNING#732
Merged
knopers8 merged 1 commit intoAliceO2Group:masterfrom Aug 19, 2025
Merged
Call ODC STOP only when the partition is in RUNNING#732knopers8 merged 1 commit intoAliceO2Group:masterfrom
knopers8 merged 1 commit intoAliceO2Group:masterfrom
Conversation
justonedev1
previously approved these changes
Aug 6, 2025
Collaborator
justonedev1
left a comment
There was a problem hiding this comment.
So apart from adding the stop call to hooks it was necessary to change the plugin code as well... well done!
Collaborator
Author
|
Putting on hold until we get confirmation whether we should or should not call ODC STOP when a partition goes to ERROR. |
This allows us to stop a run on EPNs at GO_ERROR transition by adding a corresponding ODC.EnsureStop hook. As GO_ERROR can occur with any source state, we make sure to make the actual STOP call only if the ODC partition is in RUNNING. At the same time, ODC partitions require us to call ODC.Stop if they voluntarily transition to ERROR. In such case, ODC.Stop allows the remaining healthy devices to finish processing. By keeping the original ODC.Stop behaviour, we preserve this functionality. Additionally, the commit includes minor corrections to a few related logs. Fixes OCTRL-1036.
Collaborator
Author
|
@justonedev1 Ready again. The change compared to the original version is that if an ODC partition goes to ERROR by itself, we should anyway call STOP on it. This will happen thanks to: Control/core/environment/manager.go Line 963 in fd5d7a5 |
justonedev1
approved these changes
Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows us to stop a run on EPNs at GO_ERROR transition by adding a corresponding ODC.EnsureStop hook.
As GO_ERROR can occur with any source state, we make sure to make the actual STOP call only if the ODC partition is in RUNNING.
At the same time, ODC partitions require us to call ODC.Stop if they voluntarily transition to ERROR.
In such case, ODC.Stop allows the remaining healthy devices to finish processing.
By keeping the original ODC.Stop behaviour, we preserve this functionality.
Additionally, the commit includes minor corrections to a few related logs.
Fixes OCTRL-1036.